package com.itheima.pinkman.service.impl;

import com.itheima.pinkman.mapper.UserMapper;
import com.itheima.pinkman.pojo.User;
import com.itheima.pinkman.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User queryById(long id) {
        return userMapper.selectByPrimaryKey(id);
    }
}
